'use strict';
goog.provide('Blockly.Blocks.rfid');
goog.require('Blockly.Blocks');

Blockly.Blocks.rfid_init = {
    init: function() {
        this.setColour(Blockly.Msg['SENSOR_HUE']);
        this.appendDummyInput("")
           .appendField(Blockly.Msg.rfid_init)
        this.setInputsInline(true);
        this.setPreviousStatement(true);
        this.setNextStatement(true);
    }
};

Blockly.Blocks.rfid_detect = {
    init: function () {
        this.setColour(Blockly.Msg['SENSOR_HUE']);
        this.appendDummyInput("")
            .appendField(Blockly.Msg.rfid_detect)
        this.appendStatementInput('rfidDO')
            .appendField('');
        this.setPreviousStatement(true);
        this.setNextStatement(true);
        this.setTooltip("");
    }
};
Blockly.Blocks.rfid_read = {
    init: function () {
        this.setColour(Blockly.Msg['SENSOR_HUE']);
        this.appendDummyInput("")
            .appendField(Blockly.Msg.rfid_read)
        this.setOutput(true, String);
        this.setInputsInline(true);
        this.setTooltip("");
    }
};